{{foreach from=$relations item=relation}}
<div class="relation">
	<h3 title="{{$relation.type}}">{{$relation.type}}</h3>
	<ul>
	{{foreach from=$relation.objects item=obj}}
	<li title="{{$obj.path}}">
		<a href="javascript:object_load({{$obj.id}});">{{$obj.name}}</a>
		{{if !$relation.protected AND $is_writeable }}
		<a href="javascript:relations_delete({{$obj.id}}, '{{$relation.type}}');" class="delete_relation">
			<img src="img/delete.png" border="0" />
		</a>
		{{/if}}
	</li>
	{{/foreach}}
	</ul>
</div>
{{/foreach}}